package com.lou1052.data.entity;

import java.io.Serializable;

/**
 * 可持久化的对象
 * Created with IntelliJ IDEA.
 * User: liuqing
 * Date: 2016/1/5
 * Time: 20:52
 * To change this template use File | Settings | File Templates.
 */
public interface PersisentObject<ID extends Serializable> {
    /**
     * 取得唯一标识
     * @return
     */
    ID getId();

    /**
     * 设置唯一标识
     * @param id
     */
    void setId(ID id);
}
